import reqeust from "@/utils/request";

export interface ApifoxModal {
  /**
   * 贴吧头像
   */
  barLogo: string;
  /**
   * 贴吧名字，不能超过十个字符,小于3个字符
   */
  barName: string;
  /**
   * 创建人ID，吧主
   */
  creator: string;
  /**
   * 贴吧描述
   */
  description: string;
}


export default {
  //创建贴吧请求
  reqeustCreateTieba: ({ barName, barLogo, creator, description }: { barName: string, barLogo: string, creator: string, description: string }) => {
    return reqeust.post<any, ApifoxModal>("bar/createBar", { barName, barLogo, creator, description })
  },








  
}

